package pers.patterns.yang.factory;

public class ComputerFactory {
    public Computer createdComputer(String name){
        Computer computer= null;
        if(name.equals("a")) computer = new ComputerA();
        if(name.equals("b")) computer = new ComputerB();

        return computer;
    }
}
